<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use DB;
class ManagerTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $faker = \Faker\Factory::create('zh_CN');
        $data=[];
        for ($i=0; $i <100 ; $i++) { 
        	
          $data[] =[
    		'username' => $faker->userName,
    		'password'=>bcrypt('123456'),
    		'gender'=>rand(1,3),
    		'mobile'=>$faker->phoneNumber,
    		'email'=>$faker->email,
    		'role_id'=>rand(1,6),
    		'created_at'=>date('Y-m-d H:I:s',time()),
    		'status'=>rand(1,2),

    	];
        }
        DB::table('manager')->insert($data);
        
    }
}
